SEP-1014 Use Debian Python image instead of Alpine for SEP app/frontend - #701
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Switches SEP’s container images from Alpine-based Python to Debian slim, updating package installation and user creation accordingly. This aligns better with Python ecosystem wheel availability and glibc-based runtime dependencies (notably for PDF generation tooling).
Changes:
- Replaced
python:3.11.14-alpinewithpython:3.11.14-slimin both the final app image and the builder base. - Converted
apk addusage toapt-get installwith cleanup of apt lists. - Updated user/group creation commands from BusyBox
adduser/addgroupto Debianuseradd/groupadd.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Dockerfile | Switch final runtime stage to Debian slim and replace Alpine package/user setup with Debian equivalents. |
| Containerfile.base | Switch builder base image to Debian slim and replace Alpine package install with Debian apt. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
|
Python CI job manually triggered, passed: https://github.com/percona/SEP/actions/runs/25650082271 |
crimethinking
requested review from
cortiz-percona,
marcuscruz-percona,
maxbube,
nachodd,
peter-o-addo and
yyyyyyyan
May 11, 2026 04:32
peter-o-addo
approved these changes
May 11, 2026
marcuscruz-percona
approved these changes
May 11, 2026
marcuscruz-percona
pushed a commit
that referenced
this pull request
May 11, 2026
…nd (#701) Currently, SEP app/frontend run on official Python Docker image based on Alpine Linux. Alpine image is very small, which is good, but `musl` C library forces Python library recompilation + potential runtime bugs. Official Python/Node images also publish a Debian-based `-slim` version, which is proven and mostly secure given how popular Debian is
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Currently, SEP app/frontend run on official Python Docker image based on Alpine Linux. Alpine image is very small, which is good, but
muslC library forces Python library recompilation + potential runtime bugs. Official Python/Node images also publish a Debian-based-slimversion, which is proven and mostly secure given how popular Debian is.Tested
CI passed, image building passed, smoke test passed, container ran on new image base
Checklist
make test)make run-pre-commit)make makemigrations)changelog.d/if the change is user-facing (make changelog-add), or confirmed N/A (internal-only change, or a same-release-cycle fix for an unreleased sibling ticket)